 const batchInputConfig = [
  {
    type: "input",
    label: "config.wareName",
    disabled: true,
    props: "whsename",
  },
  {
    type: "input",
    label: "config.wareCode",
    disabled: true,
    props: "whseid",
    break: true,
  },
  {
    type: "input",
    label: "config.areaName",
    disabled: true,
    props: "areakey",
  },
  {
    type: "input",
    label: 'config.areaCode',
    disabled: true,
    props: "areakey",
    break: true,
  },
  {
    type: "select",
    label: "config.putZoneName",
    disabled: false,
    props: "putawayzonename",
    api:"/queryPutawayzoneDropDown"
  },
  {
    type: "input",
    label: "config.putZoneCode",
    disabled: true,
    props: "putawayzone",
    break: true,
  },
  {
    type: "inputSection",
    label: "config.shelfRowNo",
    props: "row_number",
  },
  {
    type: "select",
    label: "config.rowLength",
    props: "row_count",
    defaultValue:"11102",
    api:"NumberDigit"
  },
  {
    type: "inputSection",
    label: "config.rowFix",
    props: "row_fix",
    sectionType:"text",
    separator:"-",
    break: true,
  },
  {
    type: "inputSection",
    label: "config.shelfColumnNo",
    props: "column_number",
  },
  {
    type: "select",
    label: "config.columnLength",
    props: "column_count",
    defaultValue:"11102",
    api:"NumberDigit",
    break: true,
  },
  {
    type: "inputSection",
    label: "config.shelfLayerNo",
    props: "tier_number",
  },
  {
    type: "select",
    label: "config.layerLength",
    props: "tier_count",
    defaultValue:"11102",
    api:"NumberDigit",
  },
  {
    type: "select",
    label: "config.createCodeRule",
    props: "codeRule",
    break: true,
    defaultValue:'12201',
    api:"LocNoRule",
    line:true
  },

  {
    type: "select",
    label: "config.locType",
    props: "locationtype",
    defaultValue:"PICK",
    api:"LOCTYPE"
  },
  {
    type: "select",
    label: "config.locFlag",
    props: "locationflag",
    defaultValue:"NONE",
    api:"LOCFLAG"
  },
  {
    type: "select",
    label: "config.locCategory",
    props: "locationcategory",
    defaultValue:"OTHER",
    break: true,
    api:"LOCCATEGRY"
  },
  {
    type: "select",
    label: "config.locHandler",
    defaultValue:"9",
    props: "locationhandling",
    api:"LOCHDLING"
  },
  {
    type: "select",
    label: "config.turnoverType",
    props: "abc",
    defaultValue:"B",
    api:"LOCABC"
  },
  {
    type: "select",
    label: "config.qualityType",
    props: "quality_type",
    defaultValue:"10901",
    break: true,
    api:"QualityType"
  },
  {
    type: "select",
    label: "config.controlProp",
    props: "control_property",
    break: true,
    defaultValue:"11001",
    api:"ControlProperty"
  },

  {
    type: "input",
    label: "config.locLength",
    props: "length",
    unit:"M",
  },
  {
    type: "input",
    label: "config.locWidth",
    props: "width",
    unit:"M",
  },
  {
    type: "input",
    label: "config.locHeight",
    props: "height",
    unit:"M",
    break:true
  },
  {
    type: "input",
    label: "config.maxLoadCount",
    props: "max_load_count",
    // unit:"件",
  },
  {
    type: "input",
    label: "config.maxLoadWeight",
    props: "weightcapacity",
    unit:"KG",
  },
  {
    type: "input",
    label: "config.maxLoadVolume",
    props: "cubiccapacity",
    unit:"M3",
  },
  {
    type: "input",
    label: "config.maxPackCount",
    props: "max_pack_count",
    // unit:"个",
    line:true
  },

  {
    type: "switch",
    label: "config.commingLeSku",
    props: "comminglesku",
    defaultValue:'1',
    api:"YESNO"
  },
  {
    type: "switch",
    label: "config.commingLeLot",
    props: "comminglelot",
    api:"YESNO",
    defaultValue:'1',
  },
  {
    type: "switch",
    label: "config.commingLeShipper",
    props: "allow_more_customer",
    defaultValue:'1',
    api:"YESNO",
    line:true
  },
];

function optionsInit(){
  let opt = {};
  batchInputConfig.filter(item => item.api).map(item => opt[item.api] = [])
  return opt
}

export {batchInputConfig,optionsInit}